//
//  CNCollectionNetManager.h
//  BBSModule
//
//  Created by 邓建东 on 2020/5/19.
//  Copyright © 2020 dong. All rights reserved.
//


#import <CNBaseNetworkFramework/CNBaseNetworkFramework.h>
#import "CNMineNewCollectModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface CNCollectionNetManager : BaseNetManager

/**
 添加收藏 收藏夹
 */
+ (id)addWithFolderId:(NSString *)folderId completionHandle:(void (^)(id, NSError *))completionHandle;
/**
 取消收藏 收藏夹
 */
+ (id)delWithFavoritedId:(NSString *)favoritedId  completionHandle:(void (^)(id, NSError *))completionHandle;
/**
 查询是否收藏
 
 @param url blink传id
 @param scource 来源
 @return <#return value description#>
 */
+ (id)checkFavoriteWithUrl:(NSString *)url source:(NSString *)source completionHandle:(void (^)(id, NSError *))completionHandle;

/**
 查询是否收藏 收藏夹

 @param folderIds 收藏夹id
 @return 回调
 */
+ (id)checkFavoriteWithFolderIds:(NSString *)folderIds completionHandle:(void (^)(id, NSError *))completionHandle;


/**
 单条取消收藏
 
 @param favoritedId 收藏id
 @return <#return value description#>
 */
+ (id)delFavoriteWithFavoritedId:(NSString *)favoritedId  completionHandle:(void (^)(id, NSError *))completionHandle;

/**
 添加收藏

 @param folderId 收藏夹ID
 @param source 来源（blog，bbs）
 @param collectModel <#collectModel description#>
 @return <#return value description#>
 */
+ (id)addFavoriteWithFolderId:(NSString *)folderId collectionModel:(CNMineNewCollectModel *)collectModel completionHandle:(void (^)(id, NSError *))completionHandle;

/**
 修改收藏夹
 @param folderName 收藏夹id
 @param folderName 收藏夹名字
 @param desc 描述
 */
+ (id)editFolderWithFolderId:(NSString *)folderId folderName:(NSString *)folderName desc:(NSString *)desc isPrivate:(BOOL)isPrivate completionHandle:(void (^)(id, NSError *))completionHandle;

/**
 添加收藏夹
 
 @param folderName 收藏夹名字
 @param desc 描述
 */
+ (id)addFolderWithFolderName:(NSString *)folderName desc:(NSString *)desc isPrivate:(BOOL)isPrivate completionHandle:(void (^)(id, NSError *))completionHandle;
@end

NS_ASSUME_NONNULL_END
